﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ListarProveedores.aspx.cs" Inherits="ABC_SA_WEB.ListarProveedores" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
        <div class= "centerDiv">

            <div class="gridStyle">
                <asp:GridView ID="dgvProveedores" runat="server" Height="148px" Width="800px"  
                    CellPadding="4" GridLines="None" ForeColor="#333333" 
                        OnRowDeleting="borrarProveedorGV" OnRowCommand="seleccionarProveedor">
                    <AlternatingRowStyle BackColor="White" />
                    <Columns>
                        <asp:BoundField DataField="idProveedor" HeaderText="ID Proveedor" 
                            Visible="False" />
                        <asp:BoundField DataField="userName" HeaderText="Usuario" />
                        <asp:BoundField DataField="contacto" HeaderText="Contacto" />
                        <asp:BoundField DataField="categoria" HeaderText="Categoría" />
                        <asp:BoundField DataField="telefono" HeaderText="Teléfono" />
                        <asp:BoundField DataField="fax" HeaderText="Fax" Visible="False" />
                        <asp:BoundField DataField="ubicacion" HeaderText="Ubicación" />
                        <asp:BoundField DataField="contrasena" HeaderText="Contraseña" 
                            Visible="False" />
                        <asp:BoundField DataField="rol" HeaderText="Rol" Visible="False" />
                        <asp:CommandField CancelText="Cancelar" EditText="Editar" ButtonType="Image" 
                            DeleteImageUrl="~/Images/delete-18.png" DeleteText="Eliminar" 
                            ShowDeleteButton="True" SelectImageUrl="~/Images/text-edit-4.png" 
                            SelectText="Seleccionar" ShowSelectButton="True" />
                    </Columns>
                    <EditRowStyle BackColor="#2461BF" />
                    <FooterStyle BackColor="#507CD1" ForeColor="White" Font-Bold="True" />
                    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                    <RowStyle BackColor="#EFF3FB" />
                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                    <SortedAscendingCellStyle BackColor="#F5F7FB" />
                    <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                    <SortedDescendingCellStyle BackColor="#E9EBEF" />
                    <SortedDescendingHeaderStyle BackColor="#4870BE" />
                </asp:GridView>
            </div>

            <div class= "buttonsContenerListar" >
                <asp:Button CssClass="btn"  ID="bttAgregar" runat="server" Text="Agregar" 
                    onclick="bttAgregar_Click" />
            </div>
        </div>
</asp:Content>
